package com.mcintyret.site.web.model;

import org.springframework.stereotype.Component;
import org.springframework.ui.Model;

import javax.annotation.Resource;

/**
 * User: mcintyret2
 * Date: 13/04/2012
 */

@Component
public class CommonModelElements {

    @Resource
    private ModelDataSourceMapProvider modelDataSourceMapProvider;

    public void setupCommonElements(Model model) {
        model.addAllAttributes(modelDataSourceMapProvider.getModelDataSourceMap());
    }
}
